<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>生成首頁</title>
<#include "../include/base.ftl">
<script type="text/javascript" src="style/web/js/make.js?v=${version}"></script>
</head>
<body>
	<div class="easyui-layout" style="width:1300px;margin-left:2%;"> 
		<h2 class="table-title" style="width:100%;">更新XML地图</h2>
		<form id="makeXmlForm" action="makehtml/xml" method="post" enctype="multipart/form-data">
		<table class="easy add-box" style="width:100%;">
			<tr>
				<th class="left">xml地图更新向导：</th>
			</tr>
			<tr>
				<td class="left">
					<span class="label">指定站点：</span>
					<select id="siteid" class="easyui-combobox add-input" name="siteid" editable="false" url="commonApi/site" textField="name" valueField="id" data-options="required:true,validType:'comboxRequired'"></select>
				</td>
			</tr>
			
			<tr>
				<td class="left">
					<span class="label">选择xml地图模板： </span>
					<input type="text" id="xmltemplate" name="xmltemplate" class="easyui-textbox add-input wid300"/>
				</td>
			</tr>
			
			<tr>
				<td class="left">
					默认的情况下，生成的主页文件放在CMS的安装目录，如果您的CMS不是安装在网站根目录的，又想把主页创建到网站根目录，那么请用相对路径来表示“主页位置”。
					例：您的CMS安装在 http://www.abc.com/dedecms/ 目录，您想生成的xml地图为 http://www.abc.com/sitemap.xml，那么xml地图位置就应该用： “../sitemap.xml”。
				</td>
			</tr>
			
			<tr>
				<td class="left">
					<span class="label">xml地图位置：	</span>
					<input type="text" id="xmlpath" name="xmlpath" class="easyui-textbox add-input wid300"/>
				</td>
			</tr>
			
			<tr>
				<td class="left">
					<span class="label wid100">地图模式:	</span>
					<input type="radio" name="xmltype" id="xmltype" value="1" checked="checked"/>动态浏览
					<input type="radio" name="xmltype" id="xmltype" value="2" checked="checked"/>生成静态 
				</td>
			</tr>
			
			<tr>
				<td class="left">
					<span class="label wid100">PC||移動：	</span>
					<input type="radio" name="makechoose" id="makechoose" value="1" checked="checked"/>PC&nbsp;&nbsp;&nbsp;&nbsp;
					<input type="radio" name="makechoose" id="makechoose" value="2" />移動
				</td>
			</tr>
		</table>
		</form>
		<div style="margin-top:20px;width:100%;text-align: center;" id="submitBox">
			<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-ok" onclick="javascript:preViewXml();">預覽XML地图</a>&nbsp;&nbsp;&nbsp;
			<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-redo" onclick="javascript:makeXml();">生成XML地图</a>
		</div>
		<table class="easy add-box" style="width:100%;margin-top:20px;">
			<tr>
				<th class="left">进行状态：</th>
			</tr>
			<tr>
				<td id="makeXmlLog">
				</td>	
			</tr>
		</table>
	</div>
</body>
</html>

